import {Button} from 'antd'


const AntButton = ({loading, type, size, title, width, onClick, disabled, htmlType,ghost,margin,cursor}) => {

    return (
        <Button disabled={disabled}
                htmlType={htmlType}
                type={type}
                size={size || 'default'}
                loading={loading}
                ghost={ghost}
                style={{width: width || 'auto', margin: margin, cursor: cursor}}
                onClick={x => onClick && onClick(x)}>
            {title}
        </Button>
    )
}

export default AntButton